﻿#ifndef QUERYPCINFO_H
#define QUERYPCINFO_H

#include <QWidget>
#include <Windows.h>
#include <QTimer>
#include <QTime>
#include "global.h"

namespace Ui {
class QueryPCInfo;
}

class QueryPCInfo : public QWidget
{
    Q_OBJECT

public:
    explicit QueryPCInfo(QWidget *parent = nullptr);
    ~QueryPCInfo();



    const QString getPcMemory();        //获取本机内存
    const QStringList getDiskInfo();    //获取磁盘空间
    const int getBatteryInfo();     //获取续航时间

public slots:
    void updateInfo_slot();





private:
    Ui::QueryPCInfo *ui;
    QTimer *timer;

};

#endif // QUERYPCINFO_H
